package cn.ml.web1662.reflect;

public class Student extends Person  {
    private String name;
    protected String name1;
    public String name2;


    void add(int i, int n){
        System.out.println(i+n);
    }
    private final void foo(){
    }
    public static  void foo2(){
    }

    public Student() {
        System.out.println("获取了无参构造");
    }

    public Student(String name) {
        this.name = name;
        System.out.println("调用只有name的有参构造");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }
}
